package wakeup.server.model;

import java.io.Serializable;
import java.util.Date;


public class Track implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer trackId;
	private String title;
	private String songURL;
	private String pictureURL;
	private Date broadcastDate;
	private Integer idProvider;
	
	public Track() {}
	
	public Track(String title, String songURL, String pictureURL) {
		this.title = title;
		this.songURL = songURL;
		this.pictureURL = pictureURL;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getSongURL() {
		return songURL;
	}
	
	public void setSongURL(String songURL) {
		this.songURL = songURL;
	}
	
	public String getPictureURL() {
		return pictureURL;
	}
	
	public void setPictureURL(String pictureURL) {
		this.pictureURL = pictureURL;
	}
	
	public void printTrack() {
		System.out.println(this.title);
		System.out.println(this.songURL);
		System.out.println(this.pictureURL);
		if (this.broadcastDate != null) {
			System.out.println(this.broadcastDate.getDate());
			System.out.println(this.broadcastDate.getMonth());
			System.out.println(this.broadcastDate.getYear());
		}
	}

	public Integer getTrackId() {
		return trackId;
	}

	public void setTrackId(Integer trackId) {
		this.trackId = trackId;
	}

	public Date getBroadcastDate() {
		return broadcastDate;
	}

	public void setBroadcastDate(Date broadcastDate) {
		this.broadcastDate = broadcastDate;
	}

	public Integer getIdProvider() {
		return idProvider;
	}

	public void setIdProvider(Integer idProvider) {
		this.idProvider = idProvider;
	}
}
